#include<stdio.h>
#include<stdlib.h>
int unval;
int val=100;

int main(int argc,char* argv[],char* env[])
{   
    int i=0;
    for(i=0;i<argc;i++)
    {
        printf("argv[%d]:%p\n",i,argv[i]);
    }
    int j=0;
    for(j=0;env[j];j++)
    {
        printf("env[%d]:%p\n",j,env[j]);
    }
    printf("代码区:%p\n",main);
    printf("init:%p\n",&val);
    printf("uninit:%p\n",&unval);
    char*p1=(char*)malloc(16);
    char*p2=(char*)malloc(16);
    char*p3=(char*)malloc(16);
    char*p4=(char*)malloc(16);
    printf("heap:%p\n",p1);
    printf("heap:%p\n",p2);
    printf("heap:%p\n",p3);
    printf("heap:%p\n",p4);

    printf("stack:%p\n",&p1);
    printf("stack:%p\n",&p2);
    printf("stack:%p\n",&p3);
    printf("stack:%p\n",&p4);

    return 0;
}
